Hi,
Is your display mode "Extend these display"? And are your monitors both touchscreen or only the second monitor is touch screen?
If only one, how about making the touch screen as the main (primary) display? Will it work well?
If it still does not work, please try below method to Disable Monitor Auto Detection and see if it helps.
https://endurtech.com/second-monitor-on-windows-10-resets-after-sleep/
Thanks,
Eleven
If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.