No. Changing client settings does not affect consensus rules. Only consensus rules determine what a valid transaction is. Since everything in Bitcoin is data, everything can be used for spam. Read this ffs:


BitMEX Blog
Bitcoin OP_RETURN & Image Storage: Spam Debate
Abstract: We look again at the OP_Return policy limit issue and the related topic of storing images in the blockchain. The argument is not going a...