Build Error MSG_GEN0025

Having issues with this being generated.
Error list also displays “UTL001 - Internal Error”
All other places to look seem ok, no clue where to look to fix

Upon further investigations, if i try to delete unused variables from a particualr program the following crash occurs…
Not sure if the 2 are related.

PLCnext Engineer, Version 2022.6 (Build 5.3.820.0, Revision e0d1fdaf)
Unexpected Exception
======================================================================
Variable worksheet could not be associated to POU of current compiler project.
Exception chain:
----------------------------------------------------------------------
InvalidOperationException
======================================================================
Details
----------------------------------------------------------------------
InvalidOperationException
==============================
Message:
------------------------------
Variable worksheet could not be associated to POU of current compiler project.
Stack trace:
------------------------------
   at Ade.Variables.Compiler.Analysis.VariableAnalyzer.AnalyzeLocalReferences(CompilerProject compilerProject, IVariableWorksheetInfo worksheet)
   at Ade.VariablesEditor.ViewModel.VariablesEditorViewModelBase.ExecuteCleanupUnusedVariables()
   at Ade.VariablesEditor.VariablesEditorCommand.OnExecute(IAdeServiceProvider context, Object[] parameters)
   at Ade.Components.Command.Execute(IAdeServiceProvider context, Object[] parameters)
   at _0c4b6d79d8ca47e7afa032f22a559310.bhtia.OnExecute(IAdeServiceProvider otsph, Object[] otsph)
   at Ade.Components.Command.Execute(IAdeServiceProvider context, Object[] parameters)
   at Ade.UIFramework.WpfUIFramework.pdxmq(CommandInfo nelak, DependencyObject nelak, Object[] nelak)
   at Ade.UIFramework.WpfUIFramework.pdxmn(Object nelak, ExecutedRoutedEventArgs nelak)

Long story short, solved…
There were many references to programs that no longer exist.. The renaming and deleting of programs is VERY unstable in 2022.6. These stray files were not visable in my program folders, only in the raw xml configuration files…
After digging through the flat file structure of the project I found a bunch of invalid a references, manually deleted the xml blocks and reloaded the project.
PLEASE ADDRESS THE PROGRAM MANAGEMENT BUGS…

I have passed this information to the PLCnext Engineer support team.