RAM overflowed when using rotating feature of canvas

did you invalidate canvas?
void lv_obj_invalidate ( const lv_obj_t obj)

example;

void tos_analogClock_animation(lv_obj_t * analogsaat)
{
lv_mem_assert(analogsaat);

ext = lv_obj_get_ext_attr(analogsaat);
lv_obj_invalidate(analogsaat);
}

i got the error before. canvas sram is also kept as a bitmap, therefore swell in a big business and it can be overflow. if your sram overflow, you can try create one or more custom objects.
you can look at how I got the result;