It's not clear. Exactly how unclear depends on what you count as canon.
The latest the ship is seen on-screen is in 2384, during the Star Trek: Prodigy episode "Supernova, Part 2", where it's badly damaged. Picard stepped down in 2381 so Worf may have been in command. A ship is seen with the Enterprise's registry number on its nacelles but some shots clearly intend it to be the USS Sovereign, so which ship is which and what eventually happens to the Enterprise is debatable.
Off-screen, the fate of the ship is hinted at in Star Trek: Picard Logs, a series of posts on Instagram that give some background on the ships and characters involved in the series. See Memory Alpha for transcripts of the videos.
The entry about Worf lists him as a former captain of the Enterprise E, stating that his time in the role was brief and that he stepped down after "the incident above Kriilar Prime".
The entry about the various Enterprises states that the E's final mission was classified and doesn't say if this final mission was the same thing as "the incident above Kriilar Prime".
Given that the battle in Prodigy is clearly not Worf's fault (and would be a rather tasteless thing to joke about), the characters are presumably referring to whatever happened on that final mission. However, exactly what that is has deliberately been left ambiguous.