Sounds like CDI box is going bad/gone bad.
Inside the box there are semiconductors which control the ignition advance
At low speeds,,timing shifts to very late.
Makes for easy starting and "no Kickback"
Then as engine rpms increase,,timing begins to shift towards increasingly advanced.
Eventually it reaches the proper full Advance point for running full throttle.
As the Engine Revs BEYOND that point,,,,,the electronics begin to reverse the Timing advance,,,and goes Back to very late timing.
That action forms an Electronic "Rev Limiter"
That part of the CDI box is a sorta "subsection" added onto the main circuit.
It's connected internally to the power input from the flywheel.
Honestly,,on your particular CDI Box,,,,I do not know this for a fact.
I dont know how the circuit is built Specifically.
But Generically,,,CDI's can fail several ways in their electronic advance.
*Fail in Full Retard mode
*Fail in Full Advance mode
*Fail in an Open Circuit mode,,,where the Advance Circuit takes itself completely Out of the total circuit----acts like it has NONE
*Or,,they can fail Short,,,Dead Short or Faintly,,,Hi Resistance short
---because its connected to Mag's Power wire,,,it can bleed power or Block it from the Box.
Spark goes very weak,,,or sometimes altogether Dead
I cannot say for 100% certain your CDI is headed south,,,but it sure sounds like a good possibility