Package won't build - but its *really* not my fault

So during the development of my project, I nightly build the package to check all is working as it should…Several times now, although I have perfectly good code, I receive the error that such and such method is not part of such and such class — even though it is and the build fails with Unknown Error.

Today, My build failed with the error that my UspotlightComponent does not contain the method

SetLightBrightness(float)

even though this has built and run correctly in the Editor with vs2022.

I’m getting a bit worried about this random wonkyness…Luckily I have gotten away with it relatively quickly and found the offending line of code this time, but in order to build the package correctly, I must revert to using the code

MySpotlight->Brightness_DEPRECATED = 1000000000;

Am I doing something wrong with my building technique? Should I be doing something or my setup is configured wrong?

I know very little about this subject, other than to read the log files when it fails