Apparently, inserting all the postmetas for the topics and to the forum they belong to solved the problem here.
I originally thought I needed only a few important postmetas e.g. _bbp_topic_count
The same idea applies to a topic and its replies as well.