In this test, I installed a cardboard box to make a gap 10.4 - 11 cm between the floor and the box and the S5 Max was able to fit under it without any problems. Seems like 10.4 cm is the minimum clearance suitable for the S5 Max. By the way, Lidar was able to detect the box considering it showed up on the map.
☝ Affiliate Disclosure: I use affiliate links in the description, this means I may earn a small commission (at no cost to you) when you buy something through my links.