Rivers can indeed terminate before reaching the ocean due to high evaporation, infiltration, and endorheic basin dynamics.
The retrieved literature consistently supports the claim that rivers can terminate inland due to factors such as evaporation, infiltration (transmission losses), and endorheic basins. Multiple papers discuss endorheic systems, terminal lakes, and arid river basins where water fails to reach the ocean.