Charging two 12V lead-acid series batteries separately with one 12V solar panel
You can do that only if the outputs of the solar charge controllers are fully isolated from the inputs.

If the controller output grounds are directly connected to the input grounds (as is likely), you would be shorting the "bottom" battery through the ground leads.