I just wanted to add this answer as I encountered the same issue in different context, and wanted to let everyone know how I solved it
The Problem:
So, I had a MySQL container running on my local machine, and it didn't have any persistent volume mounted. This basically means that if I killed the container, I would lose all the data. Since there was some useful data in the container, I didn't want that to happen.
Here's what I did:
I got into the container and copied the MySQL data directory to the host machine. Then, I killed the container and started a new one, mounting a volume with the copied directory on the host. To my surprise, I encountered the issue mentioned in the question as Windows and Linux systems have different case sensitivities for directories.
How did I solve it?
I created another directory, made it case-insensitive with the command
fsutil file setCaseSensitiveInfo ./ enable
and copied the content from the previously copied directory into it. After that, everything started working.