Keep player from falling
You can grant players with levitation that keeps them hovered in the air with this command:
/effect give @p levitation <seconds, goes up to 1000000> 255 true
To remove the effect:
/effect clear @p levitation
You can grant players with levitation that keeps them hovered in the air with this command:
/effect give @p levitation <seconds, goes up to 1000000> 255 true
To remove the effect:
/effect clear @p levitation