ATLANTA — For six weeks, the San Francisco 49ers kept finding a way to protect their perfect record. On Sunday, the mistakes finally became too heavy to carry. San Francisco fell 29-20 to the Atlanta Falcons at Mercedes-Benz Stadium, dropping to 6-1 as it heads into its Week 8 bye.

The afternoon began in San Francisco’s favor. The 49ers moved ahead 14-3 early in the second quarter, and rookie running back Kaelon Black broke loose for the first touchdown of his NFL career. But his later fumble helped swing the game, and Atlanta answered by scoring 23 consecutive points across four straight possessions.

Turnovers defined the difference. Brock Purdy threw two interceptions, while the Falcons added two forced fumbles and repeatedly ended promising San Francisco drives. The 49ers reached Atlanta territory on all nine of their possessions and finished with 400 yards to the Falcons’ 295, yet those advantages never reached the scoreboard.

Atlanta quarterback Michael Penix Jr. made the most of the extra chances. He threw three touchdowns without an interception and kept drives alive on third down as the Falcons controlled the middle portion of the game. San Francisco’s pass rush pressured him on only six of 35 dropbacks, according to NFL Next Gen Stats.

The loss changes the 49ers’ record, but it does not erase their strong start. The bye arrives at a useful moment for a team dealing with injuries and an offense that looked less precise than it had through six wins. San Francisco now has a week to study how a game it controlled early turned into its first defeat.