Hello HåkonPaulsen,
After reviewing your post, it sounds like Spotlight is using a lot of the CPU resources. I would recommend you use this article to help troubleshoot the issue. You can also try to rebuild the Spotlight index.
"Start up in safe mode
To start up in safe mode:
- Start or restart your Mac, then immediately press and hold the Shift key. The Apple logo appears on your display. If you don't see the Apple logo, learn what to do.
- Release the Shift key when you see the login window. If your startup disk is encrypted with FileVault, you might be asked to log in twice: once to unlock the startup disk, and again to log in to the Finder.
To leave safe mode, restart your Mac without pressing any keys during startup.

If an issue doesn't happen in safe mode
If an issue doesn't happen when your Mac is started in safe mode, try restarting without pressing any keys.
- If the issue comes back, you might have incompatible login items.
- If the issue doesn't come back, it was probably caused by a cache or directory issue with your startup disk, which safe mode fixed."
Use safe mode to isolate issues with your Mac
How to rebuild the Spotlight index on your Mac
Please don't hesitate to let us know if the steps resolved your issue or if you need additional assistance.
Thank you for using Apple Support Communities. Have a nice day.