How to limit the current to my PCB board?

please post your circuit diagram. You might be powering that 3W led through your mcu io pins which might be the problem.