I can reproduce the problem and have created an improvement task for it, as technically, it is not a bug, as no logic resets the settings as soon as you change the display value. However, I can understand that it can be very confusing when switching between flex and grid (this also applies to other settings that can be used in both areas, such as the flex align settings).
At first glance, this logic seems relatively simple, but it is not, as some settings overlap and some do not.
In the case of the gap, one possible solution would be to merge the row- and grid-gap of the flex settings into a “gap” field, as we do with the grid. However, I cannot promise you whether this is feasible.
We’ve addressed this in Bricks 2.4.6, now available as a one-click update in your WordPress Dashboard.
Since Bricks 2.4, Gap, Column gap and Row gap are shared by flex and grid containers, so values you set stay visible after switching between them. Bricks 2.4.6 completes this: alignment controls now show their inherited or computed values after you switch between flex and grid.
Please read the changelog entry before updating, and let us know if you experience any issues.