I can’t tell if you want to turn off the touchscreen or tablet mode. There is a setting in the bios called “cyberdeck mode” which prevents the machine disabling the keyboard/trackpad when you fold the display back. See https://community.frame.work/t/fw-12-cyberdeck-mode/72338/8
I’m not a windows guy, but there is bound to be a way to turn off the touchscreen in the device manager.