Here is a study on covid deaths in children:
https://www.nature.com/articles/d41586-021-01897-w
In addition to obesity it mentions other factors. For instance, half of all deaths occurred in children with complex multi disabilities such as those requiring tubes for breathing or eating. I would not hesitate to attend a birthday party for a healthy 4 year old.