Howdy. There are probably a number of different threads similar to this I think (or at least some where this option was discussed). I did the spray-in on my prior '13 F-150; but decided to go a different route this time with Duraliner on my '23.
It takes a few weeks to settle into place (100+ degrees helps) but it fits perfectly - I've been very pleased so far. Penda - Duraliner
I have a spray in liner with a bed slide and the only thing I see is the bed slide frame might crush the liner where you torque it resulting in cracks that would let water in. Might could trim and seal with silicon the liner in that area.