Cannot set innodb_buffer_pool_size above 1023M in my.ini
"Persisted options" is new in 8.0.  See if this works:

SET PERSIST innodb_buffer_pool_size=10737418240;


For more info:

https://dev.mysql.com/doc/refman/8.0/en/persisted-system-variables.html