the issue was that InnoDB table had corrupted secondary index named “option_name” (the corruption was a duplicate entry which is not allowed in indexes).
The only way to fix it without destroying everything is deleting that key and recreate it using commands
ALTER TABLE <NAME> DROP/ADD KEY <NAME>(PARAMS)
My host has fixed jpg, PDF and png upload. Still waiting to hear from them what they changed.
Gif files still give the same errors.
Use responsive css to modify the page based on screen size.