Consider this scenario: A microcontroller/microprocessor IC's input/output(GPIO) pins are connected to some other IC onboard, say IC 'X'. Now X has some big decoupling capacitors. Now there is a power loss event or simply the system is turned off. The decoupling capacitors on X hold enough charge to power X long after the microcontroller/microprocessor has lost all of its power. Now the X is still powering the input/output pins of the microcontroller/microprocessor for a few milliseconds.
Will this scenario cause damage the to microcontroller/microprocessor?
The microcontroller/microprocessor in my case is "Texas Instruments AM6442" I had read somewhere that it is NOT allowed to power input/output pins with the AM6442 turned off. Unfortunatley I am not able to relocate where I read this but the Internet says so this is true in general for all microcontrollers/microprocessors.
AM6442 datahseet: https://www.ti.com/lit/ds/symlink/am6442.pdf?ts=1658082725697&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FAM6442
If yes damage can be caused, what might be the possible solutions be to this problem.