I originally encountered this while trying to make 248k work with k2so.
To clarify, this is not a problem that occurs under normal conditions. Tech tree loops already make the Factorio error at loading, but the 248k's k2 overhaul mode trips up on it before the game has a chance to report it and causes a hang instead.
To easily replicate, create a sample mod that creates a tech loop