This smells similar to another situation that left off at 3.2.3x.
Code is referencing PHP 8.1, right now you’re on 7.4. Lockstep migrations were introduced ~18 months ago. Let’s approach this as if you’re at the crescent end of PHP 7.4, then move to 8.1:
First perform a full platform scrub:
upcp -sbf
Then jump back to 3.2.37, which was the last release before 8.1:
git checkout v3.2.37
chown -R apnscp /usr/local/apnscp
systemctl restart apiscp
./artisan migrate --force
If all goes accordingly, then you should be here for the last remnant to bring it up to date.