Missing modules on project start

Hello everyone,
I would like to get some help with an issue faced recently while launching my project and i coudn’t find any solution for it yet.
My project is using blueprint scripting and for a custom function i needed i created a c++ function component which is available as blueprint node. Everything works fine but when i close the project and try to reopen it again, it ask firstly to rebuild module but that action always fails. Check screenshots below:
Screenshot 2024-07-04 at 14.40.41
Screenshot 2024-07-04 at 14.40.56

The only way im able to run the project is by opening it in visual studio code editor and using Unreal Engine Tool. I run Generate Project Files and Build command to be able to open project again
Screenshot 2024-07-04 at 14.47.30

What would be a solution to this problem so i dont have to run this command every time before starting the project?
PS: my c++ skill are very basic

Thanks in advance