Then put a big capacitor in the neighborhood of the BC547. The collector resistor of the bc547 must be at the stable site of the supply.
The 2x100 ohm resistors for the data switch might be higher in value if the supply current of the PIC1 is low.
You have to play with it, because I don't know what you are making. It was yust an example of an idea.