If you're on a laptop (or AIO):
OBS Studio - Free and open source software for live streaming and screen recording - obsproject/obs-studio
obsproject.com
If you're NOT on a laptop, make sure ALL of your monitors are plugged into your GPU, and NONE are plugged into the motherboard's I/O shield port(s).