How can I protect the amplifier behind a headphone jack when interfacing with external circuitry?
The headphone output is almost certainly protected with output resistors.  It will be extremely hard to damage it by a typical breadboard circuit.

Nevertheless, if you would like more protection, put a 1k resistor in series with the signal at the headphone plug.   Now damage is almost impossible.