Finite market size as a source of extreme wealth inequality and market instability