How do I stop grout in the corner of a shower from cracking?
The corners of the shower walls should never have been grouted in the first place.  Corners are the most subject to movement and thus the most likely to crack, so they get caulked, not grouted.