AWS EC2 Windows Server 2019 (g5.4xlarge) deploy UE

I rented another instance with NVIDIA RTX pre-installed and everything worked.
Apparently there are some nuances in setting up drivers on a virtual machine yourself.