How to avoid 'Scene.Create' in a very limited circumstance (logic help)

I have a very complicated Flow designed to alert the family when there is lightning in the area.

When lightning is close to my house, the trigger causes lights to turn red and flash. Prior to turning red the I create a scene to save the light state and then restore that scene when lightning is no longer close to the house.

The trigger and red lights work great and the WAF is off the chart because she can tell the kids to get into the house.

However, a challenge arises under the following scenario: (i) lightning flashes triggering red lights saving the current lighting scene, but (ii) before the scene is restored (because lightning is too far away) lightning strikes again saving the current scene which is ‘red lights’. Under this scenario, when lightning finally leaves the area and node red restores the scene, it restores the red light scene.

What logic can I use to remedy this?

[{"id":"6899a10e4f2049d8","type":"trigger-state","z":"b2c44bd80a7e16f8","name":"Lightning","server":"6e751b1b.8f17c4","version":4,"inputs":1,"outputs":2,"exposeAsEntityConfig":"","entityId":"binary_sensor.bennett_ranch_binary_sensors_is_lightning","entityIdType":"exact","debugEnabled":false,"constraints":[{"targetType":"this_entity","targetValue":"","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"on"}],"customOutputs":[],"outputInitially":false,"stateType":"str","enableInput":true,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":120,"y":980,"wires":[["eda1edf5d39de78b","5968ea94cada3167"],[]]},{"id":"eda1edf5d39de78b","type":"api-current-state","z":"b2c44bd80a7e16f8","name":"Distance","server":"6e751b1b.8f17c4","version":3,"outputs":2,"halt_if":"10","halt_if_type":"num","halt_if_compare":"lt","entity_id":"sensor.bennett_ranch_sensors_distance_last_lightning_strike","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":320,"y":980,"wires":[["97e038a85db3fc8b","936756216c3bb25a","90785990961a53a5"],["b3920d08bd57a6f8"]]},{"id":"936756216c3bb25a","type":"api-call-service","z":"b2c44bd80a7e16f8","name":"Notify - Justin","server":"6e751b1b.8f17c4","version":5,"debugenabled":false,"domain":"notify","service":"all_iphones","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Lightning is {{payload}} miles away.\",\"title\":\"Lightning\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":760,"y":880,"wires":[[]]},{"id":"97e038a85db3fc8b","type":"api-call-service","z":"b2c44bd80a7e16f8","name":"Save Light State","server":"6e751b1b.8f17c4","version":5,"debugenabled":false,"domain":"scene","service":"create","areaId":[],"deviceId":[],"entityId":[],"data":"{\"scene_id\":\"before\",\"snapshot_entities\":[\"light.patio\"]}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":620,"y":960,"wires":[["6fe851d31034a34d"]]},{"id":"6fe851d31034a34d","type":"api-call-service","z":"b2c44bd80a7e16f8","name":"Light Red","server":"6e751b1b.8f17c4","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.patio_hue_lights_2"],"data":"{\"color_name\":\"red\",\"brightness_pct\":100}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":800,"y":920,"wires":[["a4a811689e019098"]]},{"id":"a4a811689e019098","type":"api-call-service","z":"b2c44bd80a7e16f8","name":"Light Flash","server":"6e751b1b.8f17c4","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.hue_color_lamp_2","light.hue_color_lamp_1","light.garden_1","light.garden_2","light.gazebo_1","light.middle_sconce","light.north_house_sconce","light.pool_spotlight_1","light.pool_spotlight_2","light.pool_spotlight_3","light.south_sconce"],"data":"{\t   \"flash\":\"long\"\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","service_domain":"","mergecontext":"","x":1030,"y":900,"wires":[["b3920d08bd57a6f8"]]},{"id":"934d16bd3fb19cc2","type":"api-call-service","z":"b2c44bd80a7e16f8","name":"Restore Lights","server":"6e751b1b.8f17c4","version":5,"debugenabled":false,"domain":"scene","service":"turn_on","areaId":[],"deviceId":[],"entityId":["scene.before"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1400,"y":960,"wires":[["97694f7b239304b5"]]},{"id":"f1459b960f494c25","type":"time-range-switch","z":"b2c44bd80a7e16f8","name":"Time of day","lat":"","lon":"","startTime":"23:00","endTime":"sunset","startOffset":0,"endOffset":"-90","x":1170,"y":960,"wires":[["934d16bd3fb19cc2"],["3430db62f9e77c0d"]]},{"id":"b3920d08bd57a6f8","type":"trigger","z":"b2c44bd80a7e16f8","name":"","op1":"","op2":"0","op1type":"nul","op2type":"str","duration":"20","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":850,"y":1000,"wires":[["dbee3679cff35533","f1459b960f494c25"]]},{"id":"dbee3679cff35533","type":"change","z":"b2c44bd80a7e16f8","name":"enable","rules":[{"t":"set","p":"payload","pt":"msg","to":"enable","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":1060,"wires":[["6899a10e4f2049d8"]]},{"id":"e8d0d6c6244bb49b","type":"eztimer","z":"b2c44bd80a7e16f8","name":"","debug":false,"autoname":"00:00 - 00:05","tag":"eztimer","topic":"","suspended":false,"sendEventsOnSuspend":false,"latLongSource":"haZone","latLongHaZone":"zone.home","lat":"26.35466","lon":"-80.20858","timerType":"1","startupMessage":true,"ontype":"2","ontimesun":"dawn","ontimetod":"00:00","onpropertytype":"msg","onproperty":"payload","onvaluetype":"str","onvalue":"on","onoffset":0,"onrandomoffset":0,"onsuppressrepeats":false,"offtype":"2","offtimesun":"dusk","offtimetod":"00:05","offduration":"00:01:00","offpropertytype":"msg","offproperty":"payload","offvaluetype":"str","offvalue":"off","offoffset":0,"offrandomoffset":0,"offsuppressrepeats":false,"resend":false,"resendInterval":"0s","mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"sun":true,"x":450,"y":1060,"wires":[["dbee3679cff35533"]]},{"id":"6e751b1b.8f17c4","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]

You need a way to detect that the scene is already created and not restored yet.
I have not worked that much with scenes, but a way could be to delete it once it is restored and not allow a scene to be created, if it already exist.
If it is not possible to delete it, then you need a helper variable to indicate if the previous automation have finished and the original scene restored.