A simple store of incoming messages in a flow variable and a switch node should work to stop the following message after an unavailable payload.
[{"id":"53fc6dc.ec49f14","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"smoe other value","payloadType":"str","x":170,"y":1940,"wires":[["c3c368a4.9c7f78"]]},{"id":"a0958109.bf19d","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"unavailable","payloadType":"str","x":150,"y":1900,"wires":[["c3c368a4.9c7f78"]]},{"id":"c3c368a4.9c7f78","type":"change","z":"c791cbc0.84f648","name":"","rules":[{"t":"set","p":"check","pt":"flow","to":"[$flowContext(\"check\")[1],$$.payload]","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":1900,"wires":[["9cb92086.8f489"]]},{"id":"9cb92086.8f489","type":"switch","z":"c791cbc0.84f648","name":"","property":"check[0]","propertyType":"flow","rules":[{"t":"neq","v":"unavailable","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":600,"y":1900,"wires":[["da13de5e.8621a"]]},{"id":"da13de5e.8621a","type":"debug","z":"c791cbc0.84f648","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":630,"y":2160,"wires":[]}]
Or same thing with out any JSONata expression
[{"id":"53fc6dc.ec49f14","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"smoe other value","payloadType":"str","x":170,"y":1940,"wires":[["c3c368a4.9c7f78"]]},{"id":"a0958109.bf19d","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"unavailable","payloadType":"str","x":150,"y":1900,"wires":[["c3c368a4.9c7f78"]]},{"id":"c3c368a4.9c7f78","type":"change","z":"c791cbc0.84f648","name":"","rules":[{"t":"set","p":"check[0]","pt":"flow","to":"check[1]","tot":"flow"},{"t":"set","p":"check[1]","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":1900,"wires":[["9cb92086.8f489"]]},{"id":"9cb92086.8f489","type":"switch","z":"c791cbc0.84f648","name":"","property":"check[0]","propertyType":"flow","rules":[{"t":"neq","v":"unavailable","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":600,"y":1900,"wires":[["da13de5e.8621a"]]},{"id":"da13de5e.8621a","type":"debug","z":"c791cbc0.84f648","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":630,"y":2160,"wires":[]}]