It would help to know what bike it is. You can probably find a manual for it online which will have a section dealing with fault codes and flashing lights, and what they mean.
Is the wheel magnet in place at at the right distance for instance? If it’s got too big a gap or has slipped that...