Button Card is not loading/ slow to load

Hello,

HA Version: 2024.9.2
On Proxmox in HAOS

I followed a tutorial on youtube for a room card using button-card.
I adjusted the template for my needs but sometimes several card don’t load.

image

This is how the looks and as you can see the top and bottom row are not loading.
Every row is a grid card with two button cards inside it.

The code for one row is like this:

My cards

Does anyone have an idea why this happens. I tried giving it more RAM but that didn’t help.

Thank you!