The knock sensor is exactly what it says, a "knock" sensor, what it responds to is the sounds of pre-ignition. Which is a response to early lighting off of the fuel mixture. This can be caused by a hot spot in the combustion chamber, incorrect ignition timing, bad gas or all of the above Carbon build up can raise compression levels to the point where timing needs to be adjusted, but that is rare. With the carbon build up is lower with the cleaner fuel
The meaning behind octane levels is the resistance to controlled ignition. The higher the octane the more control it has on flame travel across the piston top. That translates to a longer ignition event with a slower flame travel, hence the the timing can be advanced and give a longer power stroke. regular has the least control over the event so it has a narrow timing and faster flame travel. this can cause the early ignition to start.
If this bike has set for a extended period of time it probably had bad fuel in it amd even if drained and changed it would take a few miles to wash itself out and go to "normal" operation. It sounds as if your knock sensors ohm out OK they are probably fine and you just need to ride it more, Also use premium gas, I have mixed 50-50 premium and midrange without any problems, although that is my choice and don't recommend it
With a knock sensor failure the ECM wil retard the timing and give you less power and lower fuel economy, the way to check the sensors is to put on a timing light hold the throttle open a bit and tap next to the sensor, the timing should jump a bit.
I don't use fuel additives until I have found out what the failure is, in retrospect I can't remember using a fuel additive. I have used injector cleaner in the early injection systems (80s, 90s and maybe 2000s) but with the deposit resistant coatings that problem has kind of gone away,
With all the variables involved I would not throw an ECM at it with hopes of this fixing it. If you live near a vocational school it can be a good resource for technical information, or which works just as well is find a mechanic that has gone through a good school and ask them to describe it to you.
We love to talk on and on about these things