I Cant Create New C++ Project in Unreal engine 5 ,whenever i try to create C++ project it giving me error

This is not necessarily enough data to go on. Yeah, there’s something going wrong with that macro expansion, but we lack much data about the project itself.

What all have you tried already to fix this?

Have you tried making just a generic project off the template, naming it in something that isn’t all caps? Unreal’s preprocessor does a lot of things with CamelCase names, so perhaps it’s going wonky due to your project being named “INFINITY” versus “Infinity,” etc.

Things like that.