Could it be something bad if I have confusion and headache?

Yes. Get to an emergency room for evaluation right away. There are many potential causes for your symptoms and some are very serious and should be evaluated as soon as possible.
Get Checked out. You need a full medical evaluation with physical examination, labs and full history. Confusion is never normal.