the duration formula for MBS assumes for some pre-payments if those happen at a smaller rate - the duration increases
raising yields means lower incentives to re-finance mortgages which reduces the amount of pre-payments thus, the duration increases when yields are raising - so even a higher price decrease