That's an ... interesting ... way to do a division, but sure: also in prime cyclic groups represented as an additive group discrete log algorithms should work.
When I try your example on a version that is reported as 10.3.beta3, I'm not getting an error, so you'll probably have to include version information and quite likely the random seed to make this error reliably reproducible.
Looking at the implementation, there is a low probability that the routine produces this error even if there is a discrete log to be found: it tries 10 random walks and then just errors out. That's by design, so one solution would be to just document the implementation as a random algorithm with a non-zero probability of failure.