I have tried everything, and I have exactly the same problem. I am using windows 11, and when plugged in as a webcam the camera turn itself off after about 2 minutes. I have had several webcam cameras and I have never experienced a similar problem. The solution that provides https://fujifilm-dsc.com/en/manual/x-s20/connections/webcam not only does not work, but turning off the communication with the device makes the camera not being able to be recognized by the computer as a webcam. Maybe there is no solution other that using a different webcam, which is what I have been doing.