How do you think we can protect bitcoin from such an attack?
The main website of Bitcoin which is Bitcoin.Org already placed that as one of their frequently asked questions(FAQ). And you will see their answer as well. Just take a minute or two to read.