I am applying the circuit in the picture I uploaded and when I touch the pin with my hand or touch it with a metal piece, the external break pin is triggered spontaneously. Please help me.
You touch the input side of the H11L1 part? It triggers the STM32F1 side EXTI? Is a pulse visible on the PA0, say triggering a scope or logic analyzer?
If you use a blue pill, I assume that you use a protoboard or dupont cables.
In the two cases, there is a high risk of bad connections, and it seems that resistor R1 or ground has a problem on its connections, leaving PA0-WKUP on an indeterminate state.
I checked that all VSSA pins of STM32F103C8T6 reach GND. I disconnected H11L1 and connected PA0 pin with a cable directly to 3.3V then GND and the problem persisted.