Cannot Create a new c++ class because 'Build Failed'

Why when i try to create a new c++ class show me the error ‘build failed’?
i’m using vs2022 and ue5.1.1

i tried to install all suggested vs extensions and suggested ue5 plugins, and verified both of them from installers but nothing changed