Sizing DHW expansion tank for tankless heater
The volume of water that is being heated by the on-demand heater is very small, so the smallest commonly available expansion tank will work just fine.  Just make sure that you are getting an expansion tank for potable water, not the one made for hydronic heating systems.