There is definitely a potential problem with lights (of any sort, but particularly 'downlights) on a 'flat' (horizontal) ceiling above the head end of a bed.
That's a bit different from a 'bedroom'. For something which is only used as a bedroom, many/most people tend to prefer fairly modest general lighting, with bedside/'reading' lights for reading etc. in bed and lights in the vicinity of dressing tables etc.
Assuming that it is a fairly light colour, shining light towards (rather than away from), the sloping part of the ceiling/wall might be more effective.
Kind Regards, John