Little residential hvac help please. Newer unit leaks water once a year.

Hey guys, to keep this short, unit is only 5 years old. And probably 3 times, maybe 4, to date since it was new. once a year it will burp a bunch of water onto the basement floor, as If the drain pan was clogged, or had a Crack.

It's usually related to the first long run of a/c after winter. This time it was after losing power for 18 hours.

My theory is the water trap loses prime. Or even dries up. Then new drain water just drains out the low part of the pan.

I read that these DO need a trap. Is mine plumbed wrong? It is all down hill. Do I maybe need to cut this up and route the trap higher in line with the outlet lower than the inlet? Or maybe drop the outlet tube a few inches right out of the pan?

This is how it's been since installed. Wasn't my creation.

Thanks guys, ya'll are awesome. Appreciate it

20230827_144854.jpg