What negative effects can pinhole glasses have on the body?
Probably not many side effects except in specific instances, but no benefits either. My guess is that there are potential side effects because these glasses reduce the amount of light that the eye receives and restrict the visual field. Therefore, the restricted visual field would be bad for activities such as driving, in which you need your peripheral vision. And the reduced light makes objects appear dimmer, so it is harder to see with them at night. I also imagine (just a guess) that they would be bad for very young infants, who are almost always born without perfect vision and require some visual stimulation to correct.

There are probably many reasons why optometrists use a pinhole occluder for diagnostic purposes, but never prescribe it as treatment...