When you add items to your empty offhand using 'f' (or just the assigned key in general) you duplicate the items.
When you place a single item in an item frame you get a 0-stack
Linked issues
is duplicated by 7
2 more links
Attachments
Comments 5
I can also confirm this by posting a video of how to do this glitch.
(Note: This is for educational purposes only)
Likely related to MC-93592.