Did you that new graphics card is supported by motherboard. Is asus provided new bios firmware graphics card. Did you flashed a new latest vram bios firmware to new graphics card.
Use only windows 10 64bit.
Raad the motherboard model manual for troubleshooting tips. If possible update the latest bios firmware and vram bios.
To analysis crash I need memory dump files.
Intel i5 7200U_ Nvidia 940MX _Windows_11_Enterprise_64bit_22H2_buildno_22621.754