I realized we cannot create TDTM records only if the table is empty, as there might be new TDTM records created in upcoming versions of the NPSP and we want them to be added to the org. (Luckily I had previously created a test that caught the error).