Retrospring is now in read-only mode until September 1st when the site will fully shut down! Read more
IMO, the first is worse. It doesn't seem that memories of pain will actually hurt you, unless they come with effects other than just memory, like, for example, PTSD. And the pain may have been in the past, but just because you don't remember it doesn't mean it's the same as never having happened. The suffering is still important. Just like you'd actively avoid suffering in the future even though it hasn't happened yet, pain in the past is equally real and undesired.
And what type of torture does that?
Pain implies that your body is somehow being physically damaged. The former sounds better, but taking that implication into account, it's actually worse.
Important to note that bad false memories can also be considered some sort of damage, but of a mental nature. So I consider your question as a trade-off between physical and mental damage.
The latter sounds far worse
Retrospring uses Markdown for formatting
*italic text*
for italic text
**bold text**
for bold text
[link](https://example.com)
for link