Why did Yamaka have wrong view in SN 22.85?
The first view is wrong because ven. Yamaka thought that there is a self that ends at Nibbana. In other words, he thought that the five aggregates is a self.

The seconds view is right because it doesn't  take the five aggregates as a self. 

Also the second view is talking about an Arahath. Not an ordinary being. So this has nothing to do with Annihilationism.