Immune checkpoint inhibitors' adverse events

Immunomodulatory drugs, such as Immune-checkpoint inhibitors (ICIs) have transformed cancer care. However, as with other cancer drugs, ICIs are associated with significant adverse events which can even be fatal. How do these occur and what is being done to reduce their severity?