I dont think he's near sighted, probly just trying to find a place higher up to land, and when he gets tired he drops. my cockatiel does this when she panics. I had a budgie chick that didn't fledge correctly and as a result wasn't a good flier.
Window bumping can be an issue because to him it's freedom and he may fly faster toward it.

