CDI00008 - Internal compiler data for the worksheet S_Main:Code is invalid

Hello,
Currently when I try to rebuild the project I receive error CDI00008 The internal compiler data for the worksheet ‚S_Main:Code‘ is invalid. I’m not sure what would trigger this error, but the project compiled and functioned ok until now. There were no updates or changes performed to the DE. I’m using PLCnext Engineer 2024.0.4 with Safety Engineering Platform Version 2024.0.646.0
I was not able to find any information on this error. Any suggestions on how to correct this error?