The four main side effects of corticosteroids like loteprednol in ocular treatments are steroid-induced glaucoma, cataract formation, delayed wound healing, and increased susceptibility to infection.