Payment entry not saving "Timed out"

Hi
I had a new bench installation and ErpNext v14, and restored a v13 backup, now some modules are loading and submitting very slow, and “payment entry” doctype is not saving and times out , and i get weird errors in Devtools





after restore the old database, make sure the following bench commands executed.

bench migrate
bench build --force
bench clear-cache
sudo supervisorctl restart all

i ran all these commands now and restarted the system, still same. could it be a permission issue?