It is best practice to save current running configurations prior to making changes to the firewall. When a change breaks access to Panorama, you can get back to last known running config using the cli commands below

log into cli

> configure

> load config from <name of last saved configuration file>

you can use the tab key to view the different options available

> commit