Two years ago I tried peas for the first time - big climbing ones so I would get a decent harvest. Very excited for first pods but all were filled with pea moth larvae

Yuck! Really freaked us out and we got virtually no peas (TBH, we gave up looking bacause of the horror potential).
I would like to try some mange tout this year (I got Siraz, as if they were not edible, at least they should be pretty

).
I heard planting at a different time will help avoid the moths laying eggs, but I got conflicting info (ha-ha). Any thoughts to help me get a harvest this time around?