I know it’s a bit obvious but a tenancy lawyer is worth a call. I don’t think it’s legal.
Ps don’t let on that it upsets you to the landlord you need the element of surprise in warfare. But don’t pay the increase until you talk to a lawyer or get legal advice.
It depends on whether the jurisdiction has rent control. If not, then it's whatever the market will bear.