I don't have all the logs anymore since rolling back the version of python, but here's what I do have if it helps at all. A snippet of the error and the info section from the log.
It consistently occurred for large tables such as assessment_questions. All while calling initdb, not syncdb, since it during our initial setup.

2024-11-15 10:50:59,415 - INFO - Python version: 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)]
2024-11-15 10:50:59,415 - INFO - Platform: uname_result(system='Windows', node='nodenamehere', release='10', version='10.0.19045', machine='AMD64')
2024-11-15 10:51:00,274 - INFO - Dependency versions: {'aiofiles': '24.1.0', 'aiohttp': '3.10.10', 'aiohttp-retry': '2.8.3', 'json_strong_typing': '0.3.4', 'PyJWT': '2.9.0', 'pysqlsync': '0.7.1', 'tsv2py': '0.7.1', 'types-aiofiles': '24.1.0.20240626'}
2024-11-15 10:51:00,519 - INFO - Database version: PostgreSQL 16.4 (Ubuntu 16.4-0ubuntu0.24.04.2) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0, 64-bit