Check the engine mounting bolts on your bike I looked down and noticed the the middle mounting bolt on my bike had worked loose almost to the point of falling out. I have removed and lock tighted all three but will check them regularly from now.
In your defence, and if I'm reading it correctly, the outer nuts are of pretty poor quality and are like cheese. I had nothing but trouble with mine on the old Haibike, until I swapped out to some better quality nuts from a 1980's Raleigh that was being scrapped. It cured the problem straight away.The axle bolt on my Alfine hub loosened on a ride.
First thing I knew was a crunchy shift, which may have contributed to the hub's demise.
Not my finest preventative maintenance hour.