[illegal_state_exception] alias [x] has more than one write index [y,z]

Hi! I'm having the following problem when trying to restore an index snapshot: [illegal_state_exception] alias [x] has more than one write index [y,z]. I followed the following resolution but I came across another problem: the 'y' index appears with the 'is_write_index' parameter set to true, the 'z' index does not appear at all. Using this methods 'GET _cat/aliases/z' 'GET x/_alias'.

Elasticsearch version: 7.9.3