I haven't come across such a fanfiction. Maybe you could search on some dedicated fanfiction platforms to see if it exists.
I'm not sure if there is one. But you could try using specific search terms related to Harry Potter, Foy, and Avengers on popular fanfiction websites to see if you get any results.