Those contain quite a few lines, if I recall correctly.
Remove any related lines from misc.dnsmasq_lines
Instead, you can keep using your custom files if you enable misc.etc_dnsmasq_d
, see also V6 - Post release fixes and findings.
Just make sure the files exist under /etc/dnsmasq.d/, and Pi-hole has permission to access them.