My husband just repainted the ceiling in the laundry room. Part of the remodeling project included pulling down 30 year old cabinets. The new paint was ok the next morning but that evening it was flaking from the ceiling along the wall/about a few foot out (where the cabinets were)..

The paint used was brand new, the ceiling had been primed, but hadn't been painted in 30 years (since the cabinets were installed).

He used a spray gun (ryobi) to paint ceiling.

1. Any idea what went wrong? (He's painted most of the house without any issues)
2. What's the best way to fix the problem?