Cant create c++ scripts in unreal engne 5

Definatley should be ok but i have found this may be a DotNet issue so check out this thread:

“System.OutOfMemoryException was thrown” adding c++ classes or generating visual studio project files ( UE 5.1 ) - Programming & Scripting / C++ - Epic Developer Community Forums (unrealengine.com)

Also if the actual solution doesnt work, scroll further as there is extra info from others