UNREAL ENGINE FREEZES WHEN I GO TO EXPORT/BAKE ANIMATION

As mentioned above the solution is to open Project settings → Platforms → Windows and change the Default RHI to DirectX 11