Pipewire stops working after few minutes

My system is a Linux MX-23.4, sound system is Pipewire and I use a USB audio interface (a Focusrite Scarlett 18i20).

I have been having the following problem for a few weeks:

after turning on the pc and logging in, the system recognizes the sound interface and works correctly. But after a few minutes or more the audio no longer works and if I click on the audio management icon, it tells me “no input or output device found”.
The sound card is still connected, in fact I’m still able to manage it with its software.
So I thought that the problem could be in the audio system, in Pipewire.

This is what dmesg says:

$ sudo dmesg -W
[15727.868170] usb 1-3: new high-speed USB device number 11 using xhci_hcd
[15728.016641] usb 1-3: New USB device found, idVendor=1235, idProduct=8215, bcdDevice= 6.6c
[15728.016656] usb 1-3: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[15728.016663] usb 1-3: Product: Scarlett 18i20 USB
[15728.016668] usb 1-3: Manufacturer: Focusrite
[15728.016673] usb 1-3: SerialNumber: P9WFVMK0906F34
[15732.213939] usb 1-3: Focusrite Scarlett Gen 3 Mixer Driver enabled (pid=0x8215); report any issues to g@b4.vu
[15732.913270] colord-sane[11211]: segfault at 0 ip 00007efee7c9c0d9 sp 00007fff57495218 error 4 in libc.so.6[7efee7b6c000+155000] likely on CPU 5 (core 1, socket 0)
[15732.913293] Code: fe 7f 5c 17 e1 c5 f8 77 c3 0f 1f 84 00 00 00 00 00 89 f8 48 89 fa c5 f9 ef c0 25 ff 0f 00 00 3d e0 0f 00 00 0f 87 37 01 00 00 <c5> fd 74 0f c5 fd d7 c1 85 c0 74 5b f3 0f bc c0 c5 f8 77 c3 0f 1f

[17080.944608] usb 1-13.1: USB disconnect, device number 10
[17081.306434] colord-sane[13698]: segfault at 0 ip 00007f0a3fb4e0d9 sp 00007fff5b7774d8 error 4 in libc.so.6[7f0a3fa1e000+155000] likely on CPU 3 (core 3, socket 0)
[17081.306457] Code: fe 7f 5c 17 e1 c5 f8 77 c3 0f 1f 84 00 00 00 00 00 89 f8 48 89 fa c5 f9 ef c0 25 ff 0f 00 00 3d e0 0f 00 00 0f 87 37 01 00 00 <c5> fd 74 0f c5 fd d7 c1 85 c0 74 5b f3 0f bc c0 c5 f8 77 c3 0f 1f
[17942.350959] usb 1-13.1: new high-speed USB device number 12 using xhci_hcd
[17942.479604] usb 1-13.1: New USB device found, idVendor=0bda, idProduct=5760, bcdDevice=67.28
[17942.479612] usb 1-13.1: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[17942.479615] usb 1-13.1: Product: Integrated_Webcam_FHD
[17942.479617] usb 1-13.1: Manufacturer: LIJ93A05Z9TY5F18000F
[17942.479619] usb 1-13.1: SerialNumber: 200901010001
[17942.483738] usb 1-13.1: Found UVC 1.00 device Integrated_Webcam_FHD (0bda:5760)
[17942.490517] input: Integrated_Webcam_FHD: Integrat as /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13.1/1-13.1:1.0/input/input41
[17943.094359] wireplumber[8065]: segfault at 31 ip 00007f74b8203948 sp 00007f74b1af4ee0 error 4 in libcamera.so.0.0.3[7f74b810e000+f8000]
[17943.094367] pipewire[8102]: segfault at 31 ip 00007f6a9a7e2948 sp 00007f6a98b8afe0 error 4

If I close the session and log in again, it starts working, but only for few minutes. If I listen to music, it keeps working for much longer.

Any ideas what the problem might be? And obviously how to fix it?