Resolved! I'm getting faulty data from my vl53l5cx.
Most of the target status seem to return 5 but some do return 255.The data is correct on all 64pixels when I have a near object (200mm) but it cannot detect further objects like the ceiling and instead it will return a seemingly random small distance...