If your WordPress site is not new, it’s possible that you have a plugin or theme conflict.
Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable the plugins one by one to identify the source of your troubles.
If you can install plugins, install and activate Health Check: https://wordpress.org/plugins/health-check/
It will add a new feature under Tools > Site Health.
On its Troubleshooting tab, you can Enable Troubleshooting Mode. This mode will disable all plugins, switch to a standard WordPress theme (if available), allow you to turn your plugins on and off, and switch between themes, without affecting normal visitors to your site. Following these steps allows you to test for various compatibility issues.
There’s a more detailed description about how to use the Health Check plugin and its Troubleshooting Mode at https://make.wordpress.org/support/handbook/appendix/troubleshooting-using-the-health-check/.
You’re welcome! The same to you. Glad the solution worked.