Hi atulingale01,
For help with tasks using a large amount of your CPU you can quit the task with the steps below found in the article here: Quit an app or process in Activity Monitor on Mac
"You can use Activity Monitor to quit a process, even if it’s in a loop or not responding. You can also send a signal to a process to terminate it. If you attempt to quit a process you don’t own, you may be required to authenticate as an administrator.
- In the Activity Monitor app
on your Mac, under the Process Name list, select the app or process you want to quit. An unresponsive process is marked with (Not Responding). - Note: The Process Name list is not available in the Cache tab listings.
- Click the Stop button
in the upper-left corner of the Activity Monitor window (or use the Touch Bar). - Choose one of the following options:
- Quit: This is the same as choosing File > Quit within an app. The process quits when it’s safe to do so. If quitting the process could cause data loss or interfere with another app, the process doesn’t quit.
- Force Quit: The process quits immediately. If the process has files open, you may lose data. If the process is used by other apps or processes, those apps or processes could experience problems.
To see if a process is used by another process, choose View > All Processes, Hierarchically."
After checking All Processes in Activity Monitor, if you notice the task is related to a third-party app installed check for any updates or reinstall the app. The article here can help: Install and uninstall apps from the internet or a disc on Mac
If the issue remains test while booted to safe mode as well. How to use safe mode on your Mac Continue with the respective steps based on if the issue does or doesn't occur in safe mode. Keep us posted on the results.
Cheers.