I want to send an SMS and activate a relay activated by the trigger on Input (1)

to send an SMS and activate the relay output (5.10) for 2 seconds

It works, but it works badly, i.e. from time to time if the trigger is activated for more than once in a row the relay output (5,10) remains activated permanently (I also waited 10 minutes and it did not detach never), it is as if it no longer takes into account the number of triggers detected and therefore the seconds.
Help me because I'm going crazy, I don't understand if I have visions or if there are a lot of buggers