Server Performance Issues Due to High CPU Usage

Update:
After upgrading the server, the issue seems to have been minimized.

However, the sames errors still occur every hour while the postgres:13/main: discourse discourse [local] UPDATE command is running, which corresponds to the spikes in the chart.

Does anyone have suggestions on what might be causing this and how to resolve it?