The error happens when upgrading from 5.36 to 5.37 and 5.38 (which is currently the latest). The error occurs when using the browser and drush to update.
Running Drupal version: 7.81 (currently the latest)
There are Civi extension updates, I normally update Civi before extensions. Not sure if this is causing an issue.
I can also upload the drush error log as well if that will help.
Any help is appreciated.