i got 200-250 fps in unreal engine 5.3 but editor is lagging

yes it happens in every version of ue5. only when i move the mouse over the menus, the fps drops to 10-15. when i change the RHI option for windows to vulkan or directx 11 from the project settings, it works. Directx 12 is causing problems. While my friend was using Diretcx 12, the program was constantly freezing and giving errors. and then also my friend switched to vulkan and the problem was solved. i think ue5 causes problems with directx 12.