If you are getting an internal server error this might be due to you have not setup Ollama and server is trying to understand images present in your file system, for now either setup ollama or remove images from the folder it will work fine then
Technically it should ignore the unsupported files and if ollama client is not present it should ignore images also