Before I had this issue my Garmin Edge 520 was saying the Incident Detection had not been set up even though I had set it up and had emergency contact saved. Initially I ignored this issue, then today my Garmin started freezing when the phone connected, I tried restarting it and it did fix once.
Then when I tested it again (turned it off then back on) to see what would happen it froze once again when the phone connected. I thought maybe there is a connection between the incident detection issue and the garmin freezing issue. With this in mind I deleted all the contacts I had on my Garmin Connect app (I only had the 3 emergency contacts) thus deleting the contacts from the Incident Detection. I then reset the Incident Detection by re-adding the contacts to my garmin connect app and adding them as emergency contacts.
Since then I have tested my garmin 520 and it no longer says that the Incident Detection is not set up and it has not frozen when the phone connects. (I have switched it on and off a number of times now to see if it freezes again but it appears to be working fine fingers crossed).
Nevertheless it should be in Garmin's interest to provide a proper fix to this issue, especially given the number of users moving to other bike computer suppliers.
I hope this helps (It seemed to work for me, can't guarantee this will work for everyone)
We did release a recent update (4.15.1) that fixed the Edge freezing when using it with the Garmin Connect app. This update can now be downloaded from the app store. We apologize for any inconvenience this may have caused.