I believe my problem is related, or similar to this issue https://bbpress.trac.wordpress.org/ticket/1844#no1
The infinite loop is fixed if I avoid the use of the_content()
Issue #1844 says it was fixed a year ago though…and I’m running the latest version of bbpress…so I don’t know why I ran into this problem.