With baking you never know, there’s a gazillion things that can go wrong. In your screenshot though you don’t have a BSDF connected to the surface output, you have the color ramp directly and that shouldn’t be. Connect a Principled BSDF shader to the surface and the color ramp to the color slot of the Principled and try again.