The situation is very similar to the one described here
https://forums.garmin.com/sports-fitness/cycling/f/edge-840-series/356553/edge-840-freezes-after-ejection-from-garmin-express?pifragment-1290=4#pifragment-1290=5
However, mine also freezes during a ride which has nothing to do with ejection from a computer.
The outrageous part is that, this is a REPLACEMENT unit I just received 1 day ago, similar situation had happened to the first one I got.
I never expect this happened to a device worth 660 AUD from Garmin and it happened twice.
I ringed Garmin Australian customer service line three times and no one picked up the phone, at this stage I really need Garmin to give me a definite answer regarding this one.