Please kindly check if your BIOS is updated.
And please reinstall graphic driver.
Please refer to below official support websiteZenBook 13 UX331｜Laptops For Home｜ASUS Global
What brand or model is your USB C dock? what kind of device is connect it to the dock?
do you disconnect the external devices from the dock first then disconnect the dock from the laptop?
Also connect the dock to laptop first then connect external device one by one to the dock?