Edge 840 takes forever to sync

It worked perfectly for the first few weeks. It would sync within a few minutes after finishing the ride. Now it takes very long to sync so I have to go in Garmin Connect app and keep syncing it manually, sometimes it takes half an hour until I get my ride uploaded. I’m on 24.19 firmware. Is there any way to fix this?