Error 3 on the SW900 means “PAS problem (a riding mark).” Most likely cause: the pedal-assist sensor's magnet ring has slipped or cracked, or its cable is damaged. Try this first: turn it off and on again.
The SW900 manual marks this code as "not implemented", so it may never appear.
On the SW900 specifically
The SW900 has three pedal-assist settings: P11 is PAS sensitivity (1 to 24), P12 is PAS start strength (0 to 5) and P13 is the PAS magnet type (5, 8 or 12). P13 must match the magnet ring on your crank. source
The pedal-assist (PAS) sensor watches your cranks turn and tells the controller to help. If its magnet ring has slipped or cracked, the gap is too big, or its cable is damaged, the controller can't tell you're pedaling.
Step-by-step checklist
Work from the top. Steps go from free and easy to shop jobs. Switch the bike off before touching any connector. Tick each step as you go. Your progress is saved on this device.
As an Amazon Associate I earn from qualifying purchases. Steps marked "affiliate link" link to Amazon.
When it's time for a shop: if you've worked through every step and the problem is still there, take the bike to an e-bike shop. Bring your notes on when it happens, plus the code.