This mod/datapack adds death markers to the waypoint. The mod does not require any configuration.

After the player dies, a marker appears that will lead the player to his death point, there can be several such points. The markers are removed only when the player gets close enough to it so that they do not accumulate indefinitely.