After some search found out that was the battery optimization of the Garmin Connect Mobile that was giving those problems and need to disable it.
Settings - Battery - Battery optimization (3 dots on right top) - search for all apps and disconect the Garmin Connect Mobile