How to test if my files are not accessible from the internet?

You should definitely try to get rid of the message. It is most likely an error in the web server configuration, see e.g. here.

For the Nextcloud installation, it is recommended not to store the datadirectory in the web server path. This way you would not have the problem at all.