You’re spot on, there’s a trade off in ride quality vs. bottoming out . I’ve always started at 2” of downtravel (push up and down on the front end, let it settle then measure the length you can pull up before maxing the suspension out).
In the dunes try to avoid a full stop, even the slightest...