Thanks to andi's hint I was able to look for a solution and could fix the problem.
I added a .htaccess file in the root directory with the following content:
# Prevent HTTP Error 416 when images are generated by DokuWiki
Header set Accept-Ranges none
RequestHeader unset Range