This is most likely a corrupted Task Manager settings file.
Close Task Manager, press Win + R, enter:
%LOCALAPPDATA%\Microsoft\Windows\TaskManager
Rename settings.json to settings.old, then reopen Task Manager. Windows will create a fresh settings file automatically.
https://allthings.how/reset-task-manager-to-default-settings-in-windows-11/?
Disclaimer: This link points to a non-Microsoft official website. The page content appears accurate and safe, but the website may contain third-party advertisements. Please distinguish between advertisements and official download links to avoid accidentally clicking on content that may promote PUPs/PUAs (potentially unwanted programs). Before downloading or installing any files, it is recommended to verify the source and file name.
If it still crashes, open Command Prompt as administrator and run:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Restart the computer afterward. Microsoft’s instructions are here: https://support.microsoft.com/en-us/windows/experience/backup-recovery/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files
If neither works, use Settings > System > Recovery > Fix problems using Windows Update > Reinstall now. This repairs Windows while keeping your files, apps and settings: https://support.microsoft.com/en-us/windows/deployment/install-upgrade/fix-issues-by-reinstalling-the-current-version-of-windows