I have looked at the logs and can see that the issue is related to ossec-analysisd failing repeatedly.
This is usually caused by the wazuh manager using a low core CPU. increasing the CPU core can solve this problem.
But if you have a very good CPU core and the problem is still persisting then you have follow the below steps.
1. Set the analysisd.sca_threads option from 0 to 1 in /var/ossec/etc/internal_options.conf
2. Restart your wazuh manager.