$F = m a$ is valid only when one is in an inertial frame of reference. In a non-inertial frame you have $F = m (a+a_{fr})$, where $-m a_{fr}$ is a "fictitious force". $F$ is a "genuine force" that is …