I have a similar problem, and the issue is resolved.
Follow the steps:
- Login to database phpmyadmin.
-
Click on your database and find a table with the name “wp_options” and click on it.
-
Click on Browse at the right top side.
-
Cut the file location path and paste somewhere for safe side.
- Click on Go for save changes.
Issue Resolved
Go to WordPress >Media > add new > upload any file and check.
I hope your issue resolved with this method.