You don't. Visas are for going to a country. You get the visa before you travel to Thailand from a Thai embassy. That visa allows you to open a bank account. No visa, no bank account. Therefore you will not be getting any visa in Thailand. You will need to leave and apply for a non-O visa based on retirement or marriage from a Thai embassy, then return to Thailand with that visa and open a bank account.
You CANNOT cancel a visa. A VISA is issued by an embassy and cannot be cancelled. You can cancel an extension issued by immigration. If you want to be pedantic, I can be too
You say that like it's something new. Airlines check for visas and the like often. Because it's their responsibility to return you if you are denied entry for not meeting entry requirements.
It's fine, just know that your daughter will be treated as a foreigner until she gets her Thai passport, leaves Thailand, and returns using it. That means she will have to deal with things like 90 day reports, TM30, and applying for extensions until she enters with her Thai passport.
OX visas are incredibly rare due to the very large deposit requirement. But to answer your question, yes, you could just apply for a new visa after the 10 years. Depending on what is available at the time.
You can't cancel a visa. And you don't have to "cancel" a retirement extension, you just leave. But the point is that's what people are trying to avoid. So this "solution" is completely irrelevant to this post.