When good sleep goes bad – and what to do about it