Hey there,
Thanks for submitting a bug report. This actually works as intended, the blast from a the TNT will sometimes affect you if you are just outside of the trap as the radius of damage is based around where the explosion occurs. This means that sometimes, it isn’t contained within the trap radius.