How to drive an 100 mA forward current LED using STM32H743 Microcontroller to the collector without using external power supply?
LEDs still work well when driven below their rated current.  So if you only have 50mA, you can set the current limiting resistor in your circuit so that the current is only 50mA.