Snapshot 502 Error on restore

When trying to restore a snapshot of a subsite on my multisite to the same multisite, I receive a 502 error when restoring.

I can see the following error in the logs:

PHP Warning: Cannot use a scalar value as an array in /nas/content/live/++++++devs/wp-includes/class.wp-scripts.php on line 426, referer:

it has something to do with the database, but during the restore, it would give me a 502 error