I'm using Ubuntu 20.04 with kernel 5.11.0-25. If I connect a Bluetooth device (e.g. my keyboard after going to sleep or a new USB device, but not SD cards) the system will freeze for around 5 seconds. Audio will keep playing, but the image is frozen and the mouse/etc will not work.
Unfortunately I cannot show any code or ideas.
How can I solve this problem?