As with all datasheets that 8m is the distance at which we guarantee you cannot exceed.
if you have any ambient light - you cannot range as far.
If you have a target smaller than the full field of view, you cannot range as far
If you have a black target instead of a reflective one you cannot range as far.
If you want faster measurements, you cannot range as far.
And of course narrowing the FoV turns off elements in the Single Photon Avalanche Diode (SPAD) array - and you can't range as far.
In fact that 8M was designed expressly to focus a projector - and projector screens are pretty reflective.
I tell people that the evaluation kit is essential for figuring out if the sensor will work in a given application.
The P-Nucleo-53L1A2 is some $50. And it's worth every penny.
If the Eval kit shows you the sensor cannot work in a given situation, you've saved a ton of work.
If the Eval kit give a good result, you can use it to compare with your design to insure you are on the right track.
Good luck,