"...bacteria in the lobster starts to multiply quickly after they die and the meat will become unsafe"
I have heard this too (e.g. https://www.sciencefocus.com/nature/why-are-lobsters-cooked-...). I assume using a 'stun machine' will deliver a electric jolt to the lobster and it would be boiled immediately after.