Ryan, any update?
If not.
Check your ground under the starter. What does your voltage meter read when it's running and when it shuts down.
If the voltage meter reads 14+ v running all the grounds are good, when it shuts down what is the voltage meter reading?
It should read 12v (ignition still on with motor shut down)
If it shows 0 voltage then you have an intermittent ground fault shutting down the ignition, or a faulty power supply shutting off ignition.
But most likely a ground fault because a power supply fault would most likely cause an arc that would blow a fuse especially the high number of times it happens as a ground won't.
It's possible when removing the oil filter to disturb the crank sensor connection or the wires are shorting out where they go connect to the sensor(check for exposed wires)
Found this on Crank positioning sensors
Symptoms of a bad crankshaft position sensor
There are three ways in which a bad rotation sensor can stop a motorcycle from working
Firstly, a bad rotation sensor can stop a motorcycle from firing at all.
Some motorcycles will hear the fuel pump prime and all the lights come on… but no fuel or spark will be delivered to the chambers.
If you’re riding while it fails, this can cause you to just stop. If you’re parked, it can cause you to not be able to start.
Secondly, a bad rotation sensor can cause stumbling. This can be at a variety of speeds. Usually, this is associated with a sudden RPM drop. I had this happen around 4,000-4,200 rpm consistently. I’ve read of people having it at different random RPM ranges. Some say 5,000, or even 8,000, with different conditions like “at any throttle opening” or “only under wide-open throttle”.
Thirdly, another symptom of a bad position sensor is the motorcycle starts and runs for a while… and then stalls. This can be anything from a “hard start”, to a few revolutions, to maybe even 10-20 minutes of running.
I’ve read of the whole range, and experienced a couple. In this case, my Ducati Supersport 900 ran for about 20 seconds before stumbling and failing.
Crankshaft position sensors do fail over time. Even though they’re a static component with no moving parts, after thousands of hours of use (assuming 20,000 kms is about the equivalent of 2-4,000 hours), the hot oil washing over them from inside the crank case can take its toll.
A “bad crankshaft position sensor” may not actually be a fully bad sensor. The effect of all that heat may have made the sensor weaker, in which case placing it closer to the timing wheel might have an effect. This is a dangerous game though… you might end up shearing bits off the sensor, sending them into your engine via the oil! Very bad!
It might also be a weak/loose/corroded connector. On older motorbikes, particularly those that have seen unseasonable weather, the crank position sensor’s connector may just have seen a little bit too much dust, oil, heat, or moisture. Check the plug.