UE5.1 VS2022 C++ Build Error With MSB3073

In my case, the error occurred when I modified a file (.Build.cs) in the project.
Once I removed my added line, everything started compiling fine.