Yes it’s possible,
though the probability is very low that one or more large asteroids impacting at the same time as increased volcanic activity coincided with a very rare star quake (there are only four other known neutron stars which are classed both as an ultra-magnetic magnetar and as a soft gamma repeater)…
Supernova are a bit more common, but they leave the tell tale signature of iron-60, so their influence on the earth can be traced, (intrestingly, the last time was about 3 million years ago – roughly about the time of the emergence of humans and climatic change)
As a side note, The nearest concern is the star Betelgeuse, at about ~520 light years away, it will go supernova within a few million years (may happen tommorow though).
520 light years is probably far enough away that earth would be safe.
It would only be as bright as the moon.
A supernova exploding 25- 50 light-years would most likely be fatal to all life on Earth …
Aren’t you glad you live in the galactic outer-suburbs…