Connection of supernovae 2002ap, 2003gd, 2013ej, and 2019krl in M 74 with atomic gas accretion and spiral structure