I have pressure build up in the gas tank. on 2002 Honda Accord

Check engine light comes on every 30-90 miles. I can go over 300 miles without check light if it's a constant drive. I've noticed short drives create pressure build up in the tank that can be released by opening gas cap.

Asked by for the 2002 Honda Accord
Have U replaced the gas cap?