Detach the Type Cover completely
Wait 10 seconds
Reattach firmly until you feel/hear the magnetic click
Test immediately
Hold Power button for 20 seconds until the screen turns off
Wait 10 seconds
Press Power to boot normally
Reattach Type Cover after Windows loads fully
Go to Settings → Windows Update → Check for updates
Also go to Settings → Windows Update → Advanced Options → Optional Updates — Surface firmware updates often appear here
Download Surface Diagnostic Tool from Microsoft and run it — it specifically checks Type Cover connectivity and can auto-repair driver issues.