I resolved the issue after many attempts to find a workaround or a solution. When using a light map for the 2D light node, it must not contain any transparent pixel, and needs to be in only grayscale (white to black, no color). I had a white gradient fade out to transparent, which in turn made the sprites it interacted with have transparency for some reason. Fixed the light map and it works properly.