Nvidia has an app for this- Press Alt+Z to open the overlay. If nothing happens, use windows search to look for Nvidia App, open it- its bound to want to update itself. Let it. update.
Then open it, under Settings enable NVIDIA overlay.
You will have to restart Unreal if its running.

Alt+Z opens the Nvidia side panel…and clicking the Record button should just work.

There is also a screen recording shortcut- the default is Alt + F9.
However on laptops where you have to press an Fn key to get function keys, this won’t work… Instead go into the Nvidia App’s Settings/Shortcuts and change the Toggle Record on/off setting to something else e.g. Alt + 9. There is also a Screenshot shortcut that can be configured in the same way
When it’s working & you hit Record or Screenshot, you briefly see a Recording has started flag, like the image below, or a corresponding screenshot has been saved.
Recordings & screenshots are saved in the Nvidia App Gallery – clicking one opens it, clicking the folder icon opens the location where they are saved.
Also Windows Logo Key + Shift + R does a screenrecording that can be cropped to an area of screen.
