I've had this happen before and IIRC it's one of the issues that can be fixed by saving and reloading (like that other thread's OP also apparently mentions).
Sometimes a boat I've just jumped out of to dive after a treasure or something won't let Geralt climb back in, sometimes a boat at a harbour won't allow climbing. It's rather random but thankfully really rare despite my game being heavily modded.