Most likely this is a bug in a plugin, or possibly your theme.
Have you made any changes recently ?
To regain access to your site, access your web files via either FTP or using your web hosting manager’s file manager.
Disable your plugins by renaming their folders found in:
“<website>/wp-content/plugins”
If this fails then rename your theme found in:
“<website>/wp-content/themes”
Once you have tracked down where the problem is, take a backup, replace the relevant files.