I have had bicycle freewheels come loose while riding, many times and on multiple bikes. Here is a video showing it.
You start to hear and feel a knock, worse in some gears that others. As it progresses, it may struggle when changing gears. If you let is continue, it will come apart and leave your stranded.
Maybe I am the only one that seems to have this problem but I doubt it. The first time this happened I was out in the desert up a long hill. I felt it happening but did not stop to check into it. It finally got so bad the freewheel came apart and locked so there was no ratchet action anymore and the pedals just followed the wheel. It made for a long trip home. My bike was under warranty so I got a whole new rear wheel assembly. The new one did the same thing. This time I caught it early. Normally you need to take the wheel off and use a special spanner for this. I only had some basic tools I carry on the bike. I finally used a Philips screwdriver and some ingenuity to tighten it back up without taking anything apart.
Here is a photo showing the freewheel off the bike so you can see how to place the screwdriver.