The fact the tachometer is fluctuating when the engine is steady and the brake controller is funky would seem to indicate an electrical problem and that is where I would start. Check around in your engine compartment for any wire that may have gotten close to an exhaust header or other hot part and melted its insulation. A computer going bad could be the source of the issue but it could also be as simple as a loose ECM ground connection or a sensor wire shorting out and the ECM reacting to the incorrect sensor voltage.
Another thing you can try is to wait until night and observe the engine compartment while you rev the engine. Get the area as dark as possible maybe even placing a tarp over the engine to keep out surrounding light. What you are looking for is any type of spark. Sparks indicate a short of some type or a breakdown in wire insulation. That might help you identify your problem area.