Wood Species to replace small bed frame piece
For strength, hardwood is far preferable to softwood. Most big box stores have pieces of oak, often in the stair parts section. If nothing else is available, poplar would be preferable to softwood such as pine, fir or spruce.

You are right that you need to predrill to avoid splits.