Same issue to me. I can use the Media Library without any problems.
But not the gallery ddirectory anymore.
Using local development pc with Win 10-pro, ntfs & WordPress 5.01.
And, yes, I granted all permissions in the hole gallery directory to me/my user account.
But error still remains.
Please help.