Most likely, you've got a clogged drain line in the indoor unit - people often miss this when cleaning, but it's usually what causes exactly these symptoms. When condensate doesn't drain properly, moisture builds up inside, ice forms on the heat exchanger, and the air conditioner's overheat protection kicks in - turns on and off repeatedly. Try clearing the drain: it's usually a tube running down from the bottom of the indoor unit. You can gently blow it out or flush it with a syringe full of water. Clean the filters too, of course, but the drain is often the main culprit.
After that, it's worth checking the seals - if they've dried out (and two years is definitely enough for that to happen), air will get sucked in, and the cooling power won't be enough to cool the room. If cleaning the drain and filters doesn't help, and the seals look fine, then yeah - most likely it's a refrigerant leak or an electronics issue. But before you call a technician, might as well check these simple things first 🤔