Judge rebukes expert witness in injured baby case for series of failings