Adding altchunks in word

I am adding HTML data using alt chunks into a word document using open XML. I add around 10000 plus alt chunks. When I open the word document, it throws too many open file error and the file gets corrupted. when the alt chunks are less say 5000, then it opens the word. when alt chunks are present in the word document, the size of the file is considerably high. how to fix this. When we do a save as manually in a word, then the alt chunks gets converted inline into the word. then the file size reduces. How to allow more alt chunks without file corruption.