When adding the detail layer, in Blender 4.0.2 I found I’d get a white halo around my strokes, as below.

Update:
The solution is simple- just make sure the image color is BLACK when you create it, not the default white as in the video.
Straight alpha is okay, leave it alone!
Old Message:
Blender has added a new option that tells blender how to interpret “Alpha”.
You will need to ensure that it is set to Premultiplied before you start painting:
