Having trouble with my small form factor PC, either it’s the monitor or GPU or drivers but not sure which

Like the title says, currently having issues with my small form factor pc. I’m currently using the low profile 4060 from gigabyte and whenever I get into an intense scene my screen flickers to a black screen for a second and I’m not sure if this is a game issue, hardware issue, or software issue. I haven’t done too much testing but this issue only seems to be repeatable on Star Wars Jedi fallen order. When using it for light tasks I don’t seem to have the issue. It could be a PSU issue as well as I am currently running a 400w power supply while running my system with a ryzen 3600 cpu. But when I use my TV this issue doesn’t happen. The portable monitor I am using is a 1440p display while my tv is a 1080p display so that’s the only other factor that I could think of that’s different. I’ve tried turning down the game graphics, I’ve tried power efficiency mode on my PC, I’ve reinstalled drivers, reinstalled past drivers but it doesn’t seem to help very much. Figured I ask here since maybe someone may know the solution to my problem. I’d appreciate the help.