Next thing I did is moved all development environment from Windows to Ubuntu 22.04 - Java, Eclipse, Tomcat, nginx, MySQL, maven, git, copy of production database, copy of production photos…
The behaviour is the same on both Windows and Ubuntu.
If needed I can provide VirtualBox machine with Ubuntu and a project all set up in Eclipse for furhter investigation.