What is the largest earthquake attributable solely to volcanic activity I was recently and for the first time caught in an earthquake. This being my first time, I freaked out and had no idea whether the building was going to collapse or not.
I was later told that this earthquake was nothing to worry about because it was due to the volcanic activity of a nearby volcano (4.9 on the Richter, 1km depth). It caused minor damages near to the volcano, but nothing measurable in our location about 30 km away.

This got me thinking - if volcanic activity is less dangerous than plate activity (because it's closer to the surface, perhaps?), is there some upper limit to the scale of such earthquakes? I suppose that earthquakes and volcanic activity are correlated in some way, but I'm not considering the volcanic activity due to plate movement, rather the "normal" activity of active volcanos.

Or rather:

What is the largest magnitude measured of an earthquake attributable solely to volcanic activity?
Earthquakes associated with volcanism or volcanic rifting are typically small. They are caused by over-pressurized magma as it moves around and intrudes into brittle rocks.

Sometimes, e.g., in Hawaii, you get earthquakes due to the gravitational sliding (e.g., the M6.9 earthquake in 2018 beneath Kilauea) as new eruption causes the volcano to grow in size (adding mass) which in turn cause it to slide over the older volcanic rocks underneath. 

I don't think there's an exact upper bound for such an event but it is unlikely to exceed ~7.5. Another thing to keep in mind is that rocks near active volcanoes tend to be relatively hotter which in theory should cause less shaking during the earthquake (due to lower stress drop).