You said it does it on startup, but not on idle. The starter only works on startup, and isn't working once the engine is idling.
If the fuel pressure is fine, but you are getting a leanout at 6500, then it's the tune, not a knock sensor.
AFAIK, rooted sensors do nothing (ie have no effect on anything), rather than interfere with workings.