I'd also like to add, when kernel panics are involved, it likely isn't just a temperature issue. If the enclosure or its component is burning up and malfunctions on the fly, all you should get is supposed to be an unsafely ejected volume.
On T2 / Apple Silicon MacBooks, I got experience with various Thunderbolt accessories, when a kernel panic happens it likely is related to power, probably triggering some protection mechanism in the OS / firmware.
On T2 / Apple Silicon MacBooks, I got experience with various Thunderbolt accessories, when a kernel panic happens it likely is related to power, probably triggering some protection mechanism in the OS / firmware.