@sergerdn Thank you for sharing your experience and pointing to the important steps. Sounds like sophisticated task that needs a lot of knowledge and effort.
Updated version of BAS - 23.2.1 solved most of the issues I had.
I opened backup version of project file in text editor and rebuild
it in new BAS version 23.2.1.