Admin-ajax.php sends error 500 on frontend but on logs its 200... sometimes it sends 403.. no info on the internet

i have migrated a few wordpress websites over to cyberpanel and been having an issue with a prospectus email button… that sends an admin-ajax post request to send the customer an email…

on frontend ( network monitor) it shows 403 ,sometimes … and sometimes 500… after i edited the vhost.conf file of the vhost… it became a consistent 500…

here is the context i added in my vhost file

context /wp-admin/admin-ajax.php {
location $VH_ROOT/public_html/wp-admin/admin-ajax.php
allowBrowse 1
autoIndex 1

rewrite {
enable 0
inherit 1
}
addDefaultCharset off
enableIpGeo 1
}

but that didnt help

i have been trying eveything but it just doesnt go away… please help me out… there are no error logs on the server for the website … and in the access logs for the webiste… all that post requests to admin-ajax.php are listed with status code “200” … i dont get it… maybe m doing something wrong… i have disabled modsecurity aswell… still nothing…