I found a way to recreate this bug in 26.1 Snapshot 6.
Spawn a wolf and feed it a bone.
Spawn a sheep nearby and kill it after the wolf gets angry but before the wolf kills it.
Note that this method only works sometimes. In other times, the wolf becomes calm.
I found out that this is a duplicate of WEB-7611, please close this report.
The "MC-270000" was not intentional.
Can confirm in 1.20.1
I found a way to recreate this bug in 26.1 Snapshot 6.
Spawn a wolf and feed it a bone.
Spawn a sheep nearby and kill it after the wolf gets angry but before the wolf kills it.
Note that this method only works sometimes. In other times, the wolf becomes calm.