Use a logical analyzer to see if the module responds to "Initializing command set" when it fails. If it doesn't respond you can try a longer pause "PAUSE 500 ' let display settle".

Check that you don't have any noise in the power lines or control lines.