I'm still not sure what caused the duplicate subscriptions, but https://tracker.moodle.org/browse/MDL-60669 fixes the issue. Once I updated my 3.4 code to a version after the patch was integrated into the main code (Dec 1), I was able to restore successfully without any duplicate subscription errors.
General developer forum
Restore error: duplicate entry in mdl_forum_subscriptions
This discussion has been locked so you can no longer reply to it.