mariadb – Unknown column in ‘GENERATED ALWAYS’ when doing optimize table

I’m just running a command:
optimize table some_table_name_here;

But it results with:

Table | Op | Msg_type | Msg_text

db.some_table_name_here | optimize | note | Table does not support optimize, doing recreate + analyze instead

db.some_table_name_here | optimize | error | Unknown column ‘`db`.`t`.`total_area`’ in ‘GENERATED ALWAYS’

db.some_table_name_here | optimize | status | Operation failed

3 rows in set, 1 warning (0.001 sec)

Server version: 10.5.10-MariaDB-1:10.5.10+maria~buster-log mariadb.org binary distribution.

This problem appeared after upgrade from mariadb 10.3 to 10.5 (via 10.4).