We have noticed a low rate of Intel-based macOS computers experiencing kernel panics when connected to Thunderbolt 3 devices including a majority of our docking stations. Based on user reports, this seems to range from macOS Catalina going forward on several different computer models.
We are currently investigating this issue to help remove this issue from macOS computers, but until that time we suggest that you make sure your Mac’s lid is open and completely out of sleep mode before undocking or re-docking. Please note that it may take a few seconds before operating system can start responding after waking from sleep mode, so please give this computer the same amount of waiting period that it takes for the computer to register your mouse movements before undocking or re-docking.
Those who are having this behavior often are advised to undock your macOS computer 3-5 seconds before closing the lid, or open the lid 3-5 seconds before re-docking. We found this technique will greatly reduce the panic issues.