Launching Windows terminal freezes the OS for several seconds

For some time launching windows terminal (which is powershell in windows 11) freezes the whole OS for several seconds on launch. Process explorer doesn’t show any resource spike. There are no profile launch scripts. Is there a way to check what’s going on or somehow reset Powershell?