Windows 11 may silently revert custom folder icons to defaults if desktop.ini is from an untrusted source. Untrusted sources include files with Mark-of-the-Web, copies from some WebDAV/HTTP locations, ...
Use a Square Image with a Transparent Background: For optimal results, use a square image with a transparent background. You can find such images online or create them using photo editing tools.